package cn.edu.dgut.css.sai.demo.remoteloadjar.remote;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Sai
 * Created by Sai on 2020/6/8.
 */
@RestController
public class RemoteController {
    public RemoteController() {
        System.out.println("RemoteController初始化完成");
    }

    // http://localhost:8080/remote
    @GetMapping("/remote")
    public String remoteIndex() {
        return "这是远程加载的jar中的RemoteController类";
    }
}
